﻿using System;

namespace Program10
{
    class Program
    {
        static void Main(string[] args)
        {           
            Console.Write("请输入第几个月：");

            Console.WriteLine("{0}对兔子",Bunny(Convert.ToInt32(Console.ReadLine())));
        }
        //递归求斐波那契数列的值
        public static int Bunny(int n)
        {
            if (n == 1 || n == 2)
            {
                return 1;
            }
            else
            {
                return (Bunny(n - 1) + Bunny(n - 2));
            }
        }
    }
}
